/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.designPatterns.chainofResponsibility;

/**
 *
 * @author minga
 */
public class MercuryHandler extends PlanetHandler{
    public void handleRequest ( PlanetEnum request )
    {
      if(request == PlanetEnum.MERCURY ) 
      {
       System.out.println ("MercuryHandler handl e s " + request ) ;
       System.out.println ( "Mercury i s hot .n n" ) ; 
      }
      else 
      {
        System.out.println ( "MercuryHandler doesn ' t handle " + request ) ;
      }
      if(successor!=null ) 
      {
         successor.handleRequest (request ) ;
      }
    }
}
